package com.neu.neumall.auth.feign;

import com.neu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("neumall-third-party")
public interface ThirdPartFeignService {

//    @GetMapping(value = "/sms/sendCode")
//    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

    @PostMapping(value = "/sms/sendCode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
